package com.dd.duu.service;

import com.dd.duu.service.fallback.TestFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 描述: 客户端测试Feign 接口调用
 *
 * @author: yanglin
 * @Date: 2021-03-03-13:33
 * @Version: 1.0
 */
@FeignClient(value = "dd-user-service", fallbackFactory = TestFallBackFactory.class)
public interface TestClient {

    @GetMapping("test")
    String queryTest();

    @GetMapping("test/{name}")
    String queryTestStr(@RequestParam String name);
}
